<?php

class media_dimensions extends Model {

	public $dimension_id = false;
public $media_id = false;
public $dimension_type = false;
public $dimension_width = false;
public $dimension_height = false;



    function media_dimensions()
    {
        // Call the Model constructor
        parent::Model();
		$this->_table_name = 'media_dimensions';
		$this->_primary_key = 'dimension_id';
    }
	

	public function delete_by_media_id($iMediaId)
	{
		$this->db->where('media_id', $iMediaId);
		$this->db->delete('media_dimensions');	
	}
	

}

?>